package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.mapper.MajorMapper;
import com.smxy.daydayup.pojo.Major;
import com.smxy.daydayup.service.MajorService;

/**
 * @team daydayup
 * @time 2021-12-06 21:45
 */
@Service
public class MajorServiceImpl implements MajorService {

    @Resource
    private MajorMapper majorMapper;

    @Override
    public int deleteByPrimaryKey(Long majorId) {
        return majorMapper.deleteByPrimaryKey(majorId);
    }

    @Override
    public int insert(Major record) {
        return majorMapper.insert(record);
    }

    @Override
    public int insertSelective(Major record) {
        return majorMapper.insertSelective(record);
    }

    @Override
    public Major selectByPrimaryKey(Long majorId) {
        return majorMapper.selectByPrimaryKey(majorId);
    }

    @Override
    public int updateByPrimaryKeySelective(Major record) {
        return majorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Major record) {
        return majorMapper.updateByPrimaryKey(record);
    }

}

